//
//  XYClassfyCatslv.swift
//  XYReadBook
//
//  Created by fox on 2017/9/6.
//  Copyright © 2017年 tsaievan. All rights reserved.
//

import UIKit
import ObjectMapper

/// 在模型中,尽量不要写感叹号!一旦没有值就会崩溃
class XYClassfyCatslv: BaseResponse {
    var male: [MajorGeneral] = []
    var female:[MajorGeneral] = []
    var picture:[MajorGeneral] = []
    var press:[MajorGeneral] = []
    var ok: Bool = true
    
    override func mapping(map: Map) {
        male                <- map["male"]
        female              <- map["female"]
        picture             <- map["picture"]
        press               <- map["press"]
        ok                  <- map["ok"]
    }
}
class MajorGeneral: BaseResponse {
    
    var major = ""
    var mins:[String] = []
    
    override func mapping(map: Map) {
        major                <- map["major"]
        mins                 <- map["mins"]
    }
}
